﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YouKuFilm
{
    class MovicURL
    {
        string[] Areas = new string[] { "a_大陆", "a_香港", "a_台湾", "a_韩国", "a_日本", "a_美国", "a_法国", "a_英国", "a_德国", "a_意大利", "a_加拿大", "a_印度", "a_俄罗斯", "a_泰国", "a_其他" };

        string[] Types = new string[] { "g_武侠", "g_警匪", "g_犯罪", "g_科幻", "g_战争", "g_恐怖", "g_惊悚", "g_纪录片", "g_西部", "g_戏曲", "g_歌舞", "g_奇幻", "g_冒险", "g_悬疑", "g_历史", "g_动作", "g_传记", "g_动画", "g_儿童", "g_喜剧", "g_爱情", "g_剧情", "g_运动", "g_短片", "g_优酷出品" };

        string[] Times = new string[] { "r_2016", "r_2015", "r_2014", "r_2013", "r_2012", "r_2011", "r_2010", "r_2000", "r_1990", "r_1980", "r_1970", "r_-1969" };

        string[] Status = new string[] { "u_1" };

        string[] Pays = new string[] { "pt_1", "pt_2" };


        /// <summary>
        /// 获取所有的筛选URL字符串
        /// 连接地址不包含html
        /// </summary>
        public List<string> GetALLMoiveURLString()
        {
            List<string> allUrlStr = new List<string>();
            ///获取到的地址不包含.html
            foreach (string onearea in Areas)
            {
                foreach (string onetype in Types)
                {
                    foreach (string onetime in Times)
                    {
                        foreach (string onestatus in Status)
                        {
                            foreach (string onepay in Pays)
                            {
                                allUrlStr.Add("http://list.youku.com/category/show/c_96_" + onearea + "_" + onetype + "_" + onetime + "_" + onestatus + "_" + onepay + "_s_1_d_1");
                                //@"http://list.youku.com/category/show/c_96_s_6_d_4.html"//最新更新
                            }
                        }
                    }
                }
            }

            return allUrlStr;
        }

        /// <summary>
        /// 电影最新
        /// </summary>
        /// <returns></returns>
        public string GetCurMoiveURLString()
        {
            return "http://list.youku.com/category/show/c_96_s_6_d_4_u_1";
        }
    }
}
